#!/usr/bin/env bash
#git clone
mv ../app/conf/config_dev.json ../app/conf/config.json
date=`date +%Y%m%d%H%M`
tar cvzf auth-server.${date}.tgz -C "../" app app.js package.json
ssh -i cuoyiba.pem gameadmin@111.230.42.123 "cd /data/app/auth-server; rm -rf auth-server*.tgz"
scp -i cuoyiba.pem auth-server.${date}.tgz gameadmin@111.230.42.123:/data/app/auth-server
